
{% set key = "cid" %}
{% set default = "请选择分类" %}
{% set classes = {1:1,2:2} %}
<div class="rule-single-select">
    <select name="cond[cid]" onchange="javascript:__doPostBack('searchCond','')" >
        <option value="" {{app.request.get("cond")[key] is defined and app.request.get("cond")[key] == "" ? ' selected="selected"' : "" }} >{{ default }}</option>
        {% for class in classes %}
            <option
                    value="{{ class.id }}"
                    {{app.request.get("cond")[key] is defined and  app.request.get("cond")[key] == class.id ? ' selected="selected"' : "" }}
                    >
                {{ class.name }}
            </option>
        {% endfor %}
    </select>
</div>